﻿@model CEIT.Domain.Pessoa
@using CEIT.Domain
<fieldset>
    <legend>Dados Pessoais</legend>
    @if (Model.Id != 0)
    {
        @Html.HiddenFor(model => model.Id);
    }
    <div class="align-column two">
        <div class="">
            <div class="editor-label">
                @Html.LabelFor(model => model.NmPessoa)
            </div>
            <div class="editor-field">
                @Html.EditorFor(model => model.NmPessoa)
            </div>
        </div>
        <div class="">
            <div class="editor-label">
                @Html.LabelFor(model => model.DtNascimento)
            </div>
            <div class="editor-field">
                @Html.TextBox("DtNascimento", string.Format("{0:dd/MM/yyyy}", Model.DtNascimento), new { @class = "datepicker", maxlength = 10 })
            </div>
        </div>
        <div class="">
            <div class="editor-label">
                @Html.LabelFor(model => model.NuCPF)
            </div>
            <div class="editor-field">
                @Html.EditorFor(model => model.NuCPF)
            </div>
        </div>
        <div class="">
            <div class="editor-label">
                @Html.LabelFor(model => model.NuRG)
            </div>
            <div class="editor-field">
                @Html.EditorFor(model => model.NuRG)
            </div>
        </div>
    </div>
    <div class="align-column two">
        <div class="">
            <div class="editor-label">
                @Html.LabelFor(model => model.DsEndereco)
            </div>
            <div class="editor-field">
                @Html.EditorFor(model => model.DsEndereco)
            </div>
        </div>
        <div class="">
            <div class="editor-label">
                @Html.LabelFor(model => model.NmEmail)
            </div>
            <div class="editor-field">
                @Html.EditorFor(model => model.NmEmail)
            </div>
        </div>
        <div class="">
            <div class="editor-label">
                <br />
            </div>
            <div class="editor-field">
                @Html.CheckBoxFor(model => model.IsMembro)
                @Html.LabelFor(model => model.IsMembro)
            </div>
        </div>
        @if (EnumPerfilAcesso.Administrador.Equals((EnumPerfilAcesso)ViewBag.EnumPerfilAcesso))
        {
            <div class="">
                <div class="editor-label">
                    <br />
                </div>
                <div class="editor-field">
                    @Html.CheckBoxFor(model => model.IsUsuario)
                    @Html.LabelFor(model => model.IsUsuario)
                </div>
            </div>
        }
    </div>
</fieldset>
